package com.zh.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zh.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: Mcc实体类
 * @Author: Li.HuiNeng
 * @Create in: 2019/8/17
 * @Version: 1.0.1
 */
@TableName("system_mcc")
@ApiModel(description = "mcc实体类")
@Data
@EqualsAndHashCode(callSuper = true)
public class MccEntity extends Model<MccEntity> {
    private static final long serialVersionUID = -6725976424712000275L;

    @ApiModelProperty(value = "主键", example = "1", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value = "MCC类别 1-民生类 2-一般类 3-餐娱类 8-批发类 16-房汽类 32-公益类", example = "3")
    @TableField(value = "mcc_type", condition = SqlCondition.LIKE)
    private Integer mccType;

    @ApiModelProperty(value = "MCC代码", example = "5811")
    @TableField(value = "mcc_code", condition = SqlCondition.LIKE)
    private String mccCode;

    @ApiModelProperty(value = "经营范围", example = "包办伙食、宴会承包商")
    @TableField(value = "mcc_memo", condition = SqlCondition.LIKE)
    private String mccMemo;

}
